package com.quanyan.club.service;

import com.quanyan.api.APIResponse;
import com.quanyan.club.entity.db.TbOrder;
import com.quanyan.club.entity.vo.resp.RespClubActivityMember;
import com.quanyan.club.entity.vo.resp.RespIMActivityMember;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by yue.yuan on 2016/11/29.
 * 活动账目接口
 */
public interface ActivityAccountService {

    /**
     * 活动的线上收款
     * @param activityId
     * @return
     */
    BigDecimal activityAccountOnline(int activityId);

    APIResponse<List<RespClubActivityMember>> getActivityMemberList(Integer activityId,
                                                                 Integer uid);

    APIResponse<RespIMActivityMember> getActivityMemberListIM(Integer activityId,
                                                 Integer uid);

    List<RespClubActivityMember> buildClubActivityMember(Integer uid,
                                                         Integer activityId,int clubId,
                                                         boolean isBusiness, boolean isAdmin);

    void refundBalanceAmount(TbOrder order, String activityName, int clubId);
}

